home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MACD 5
/
MACD 5.bin
/
workbench
/
libs
/
shutdown.lzh
/
shutdown_5.1
/
shutdown.readme
Wrap
Text File
|
1996-12-02
|
2KB
|
44 lines
Short: Shutdown command
Author: fasten@shw.com (Bernhard Fastenrath)
Uploader: fasten@shw.com (Bernhard Fastenrath)
Version: 5.1
Type: util/libs
Changes since 5.0:
- GCC support fixed (thanks to Gunther Nikl for the bug report).
Changes since 4.1:
- Incompatible change to the message format (due to changes in queue.library).
Out of date clients will simply refuse messages.
Out of date servers (the shutdown command) will make clients report
a random shutdown time (reading illegal memory addresses).
- Compiled with SAS/C 6.57.
Changes since 4.0:
- Applications can delay the shutdown now (see src/delay.c).
Changes since 3.0:
- unmount.c rewritten to send ACTION_INHIBIT to all filesystems at the
same time (instead of sequentially).
- compiled with SAS/C instead of GCC (which makes it a bit smaller).
The Amiga's lack of a shutdown mechanism is probably based on the assumption
that the user is always the direct cause of disk access or at least aware of
the fact that the disks might be accessed at a certain point.
Unfortunately this is obviously not true for BBS systems or Amigas connected
to a LAN or in some other way running in a multiuser environment. It is also
not true for Amigas acting as servers or Amigas doing longer calculations
(e.g. rendering) in the absence of a console user. There's also still the
small chance that the user thinks the disks are idle and it's safe to turn of
the system and a background program chooses this moment to start disk activity.
ResetHandler (AmiNet://util/cdity/ResetHandler.lha) executes
s:shutdown-sequence after a keyboard reset. If you want to call shutdown
from s:shutdown-sequence make sure to use the "-i" option to shut down
as fast as possible.
This shutdown command requires queue.library (which is included). The full
archive is AmiNet:util/libs/queue.lzh. It can be used with but does not
require shutdown.library (AmiNet:util/boot/Shutdown2_0.lha). The original
shutdown.library was written by Olaf Barthel (olsen@sourcery.han.de).
A small library which is compatible with Olaf's shutdown.library is included.
This is not an update to the original shutdown.library but a full update
might follow.